package com.atguigu.service.impl;

import com.atguigu.mapper.ScheduleMapper;
import com.atguigu.pojo.vo.ScheduleVo;
import com.atguigu.service.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScheduleServiceImpl  implements ScheduleService {
    @Autowired
    private ScheduleMapper scheduleMapper;


    @Override
    public List<ScheduleVo> findAll() {
        return scheduleMapper.findAll();
    }

    @Override
    public int removeScheduleById(Integer id) {
        return scheduleMapper.removeById(id);
    }

    @Override
    public int addSchedule(ScheduleVo scheduleVo) {
        return scheduleMapper.addSchedule(scheduleVo);
    }

    @Override
    public int updateById(ScheduleVo scheduleVo) {
        return scheduleMapper.updateById(scheduleVo);
    }
}
